import request from '@/utils/request'

// 验证码
export const verificationCode = (clientToken) => {
  return request({
    url: `/api/user-service/user/imageCode/${clientToken}`
  })
}
// 登录接口 { clientToken, code, loginName, loginType, passWord }
export const loginApi = (data) => {
  return request({
    method: 'POST',
    url: '/api/user-service/user/login',
    data
  })
}
// 获取用户信息
export const userApi = (id) => {
  return request({
    method: 'GET',
    url: `/api/user-service/user/${id}`
  })
}
